package hevs.eServices.client.object;

import java.io.Serializable;

@SuppressWarnings("serial")
public class Data implements Serializable {
	
	
	// Attributs
	private String suffix;
	private String unit;
	private String parameter;
	private double firstValue;
	private double lastValue;
	private String date;
	
	
	// Relation Attributs
	private Meter meter;
	
	
	// Constructors
	public Data() {
		
	}
	
	// USED FOR TESTING ***************************************
	public Data(double value) {                             //*
		this.firstValue = firstValue;                       //*
	}                                                       //*
	// USED FOR TESTING****************************************
	
	public Data(String suffix, String unit, String parameter, double firstValue, double lastValue, String date) {
		this.suffix = suffix;
		this.unit = unit;
		this.parameter = parameter;
		this.firstValue = firstValue;
		this.lastValue = lastValue;
		this.date = date;
	}
	
	
	// Getters - Setters
	public String getSuffix() {
		return suffix;
	}

	public void setSuffix(String suffix) {
		this.suffix = suffix;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public String getParameter() {
		return parameter;
	}

	public void setParameter(String parameter) {
		this.parameter = parameter;
	}

	public double getFirstValue() {
		return firstValue;
	}

	public void setFirstValue(double firstValue) {
		this.firstValue = firstValue;
	}

	public double getLastValue() {
		return lastValue;
	}

	public void setLastValue(double lastValue) {
		this.lastValue = lastValue;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	
	// Relation Getters - Setters
	public Meter getMeter() {
		return meter;
	}

	public void setMeter(Meter meter) {
		this.meter = meter;
	}

}
